import { request } from "@/utils/request";

const API_HOME = {
  SWIPPER: "/banner/list",
  SHOPLIST: "/shop/goods/list",
};

/**
 * @Description: 获取轮播图
 * @Author: Zhanghan
 * @Date: 2024-02-08 20:09:52
 */
export async function getSwipper(param: any) {
  return request({
    url: API_HOME.SWIPPER,
    payload: param,
    method: "GET",
    contentType: "application/json",
  });
}

/**
 * @Description: 获取商品列表
 * @Author: Zhanghan
 * @Date: 2024-02-08 20:11:38
 */
export async function getshopList(param: any) {
  return request({
    url: API_HOME.SHOPLIST,
    payload: param,
    method: "GET",
    contentType: "application/json",
  });
}
